# !/usr/bin/env python
# -*- coding:utf-8 -*-
import yaml


class DataUtil(object):

    @classmethod
    def read_from(cls, yaml_file):
        with open(yaml_file, 'rt', encoding='utf-8') as f:
            return yaml.safe_load(f)


def read_data(folder, filepath):
    return DataUtil.read_from(folder / filepath)
